// 滚动到指定id
function goTo(s) {
	try {
		document.getElementById(s).scrollIntoView({
			block: "end",
			behavior: "smooth"
		});
	} catch (e) {
		console.log(e);
	}
	closeRightMenu();
}

//自适应设置
function softWin() {
	var h = window.innerHeight ||
		document.documentElement.clientHeight ||
		document.body.clientHeight;
	var w = window.innerWidth ||
		document.documentElement.clientWidth ||
		document.body.clientWidth;
	var f = document.getElementById("footer");
	var hContent = document.getElementById("head_content");
	var headDivHeight = document.getElementById("head_div").offsetHeight;
	hContent.style.height = h + "px";
	hContent.style.paddingTop = (h - headDivHeight) / 2 + "px";
	f.style.marginTop = h - f.style.height + "px";
	document.getElementById("footBox").style.height = h - f.style.height + "px";

	if (w <= h) {
		document.getElementById("edu-pic").style.borderRadius = "5px 5px 0px 0px";
		document.getElementById("edu-dis").style.borderRadius = "0px 0px 5px 5px";
	} else {
		document.getElementById("edu-pic").style.borderRadius = "5px 0px 0px 5px";
		document.getElementById("edu-dis").style.borderRadius = "0px 5px 5px 0px";
	}
}

softWin();

window.onresize = function () {
	softWin();
	star();
}